package com.yun.zhong.fu.codelianxi.jmx;

import org.springframework.jmx.export.annotation.ManagedResource;

import javax.annotation.ManagedBean;

/**
 * @Author RenPu
 * @Date 2022/2/3 18:54
 * @Version 1.0
 * @Description:
 **/

@ManagedResource
public class JmxBean implements JmxTestBean {

    private String name;

    @Override
    public String getName() {
        return name;
    }

    @Override
    public void setName(String name) {
     this.name=name;
    }

    @Override
    public String printHello() {
        return "JmxTest"+name;
    }

    @Override
    public String printHello(String whoName) {
        return "JmxTest"+whoName;
    }
}
